package com.hsource.doctorcenter.domain.user;

import com.hsource.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 用户基础对象 user_base
 *
 * @author ruoyi
 * @date 2020-10-23
 */
public class UserBase extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 标识
     */
    private String id;

    /**
     * 头像
     */
    private String image;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 密码
     */
    private String password;

    /**
     * 姓名
     */
    private String name;

    /**
     * 昵称
     */
    private String nickename;

    /**
     * 性别（0：未知，1：男，2：女）
     */
    private Long gender;

    /**
     * 手机品牌
     */
    private String deviceBrand;

    /**
     * 手机型号
     */
    private String deviceModel;

    /**
     * 手机序列号
     */
    private String deviceNumber;

    /**
     * 生日
     */
    private String birthday;

    /**
     * 上次登录ip
     */
    private String lastIp;

    /**
     * 上次登录时间
     */
    private Date lastLoginTime;

    /**
     * 目前状态（0：正常，-1：删除，1：停用）
     */
    private Long curStatus;

    private int age;


    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPhone() {
        return phone;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPassword() {
        return password;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setNickename(String nickename) {
        this.nickename = nickename;
    }

    public String getNickename() {
        return nickename;
    }

    public void setGender(Long gender) {
        this.gender = gender;
    }

    public Long getGender() {
        return gender;
    }

    public void setDeviceBrand(String deviceBrand) {
        this.deviceBrand = deviceBrand;
    }

    public String getDeviceBrand() {
        return deviceBrand;
    }

    public void setDeviceModel(String deviceModel) {
        this.deviceModel = deviceModel;
    }

    public String getDeviceModel() {
        return deviceModel;
    }

    public void setDeviceNumber(String deviceNumber) {
        this.deviceNumber = deviceNumber;
    }

    public String getDeviceNumber() {
        return deviceNumber;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setLastIp(String lastIp) {
        this.lastIp = lastIp;
    }

    public String getLastIp() {
        return lastIp;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setCurStatus(Long curStatus) {
        this.curStatus = curStatus;
    }

    public Long getCurStatus() {
        return curStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("phone", getPhone())
                .append("password", getPassword())
                .append("name", getName())
                .append("nickename", getNickename())
                .append("gender", getGender())
                .append("deviceBrand", getDeviceBrand())
                .append("deviceModel", getDeviceModel())
                .append("deviceNumber", getDeviceNumber())
                .append("birthday", getBirthday())
                .append("lastIp", getLastIp())
                .append("lastLoginTime", getLastLoginTime())
                .append("createTime", getCreateTime())
                .append("curStatus", getCurStatus())
                .append("updateTime", getUpdateTime())
                .append("image", getImage())
                .toString();
    }
}
